import type { ProfileDetail, ProfileParams } from "@/types/member"
import { http } from "@/utils/http"

/**
 *
 * @returns 获取个人信息的接口
 */
export const getMemberProfileAPI = () => {
  return http<ProfileDetail>({
    url: "/member/profile",
    method: 'GET',
  })
}

/**
 *
 * @param data 请求体参数
 * @returns
 */

export const putMemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileDetail>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
